class CheckBankModel {
  List<Messages> messages;
  bool validated;
  String stat;
  String key;

  CheckBankModel({this.messages, this.validated, this.stat, this.key});

  CheckBankModel.fromJson(Map<String, dynamic> json) {
    if (json['messages'] != null) {
      messages = new List<Messages>();
      json['messages'].forEach((v) {
        messages.add(new Messages.fromJson(v));
      });
    }
    validated = json['validated'];
    stat = json['stat'];
    key = json['key'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.messages != null) {
      data['messages'] = this.messages.map((v) => v.toJson()).toList();
    }
    data['validated'] = this.validated;
    data['stat'] = this.stat;
    data['key'] = this.key;
    return data;
  }
}

class Messages {
  String errorCodes;
  String name;

  Messages({this.errorCodes, this.name});

  Messages.fromJson(Map<String, dynamic> json) {
    errorCodes = json['errorCodes'];
    name = json['name'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errorCodes'] = this.errorCodes;
    data['name'] = this.name;
    return data;
  }
}
